<style>
.word {
	padding:5px;
	border:0px solid #333;
}
.word .word_product {
	float:left;
	width:120px;
	text-align:center;
}
.word .word_body {
	margin-left:122px;
}
.product_name {
	border:1px solid #acc6e8;
	background:#e9f5fe;
	margin:0px;padding:5px;
}
.word_name {
	font-size:14px;
	border-bottom:1px dashed #abcd3a;
	background:#f2fddc;
}
.word_desc {
	text-indent:2em;
	padding:20px;border:1px dashed #c0c0c0;
	padding-bottom:4px;
}
</style>
<script type='text/javascript'>
function showProduct(pid) {
	var pcid= <?php echo $pcid; ?>;
	$.post("?controller=Products&action=show",{'pid':pid},function(htmlcode) {
		$("#remote-tab-"+pcid).empty(); 
		$("#remote-tab-"+pcid).append(htmlcode); 
	});
}
</script>
<?php
foreach($rowset as $word):
	echo "<div class='word'>";
	echo "<div class='word_product'><span class='product_name' onclick='showProduct(".$word['product']['pid'].")'>".$word['product']['product_name']."</span><p><img src='' /></p></div>";
	echo "<div class='word_body'>";
	echo "<p><span class='word_name'>".$word["word_name"]."</span><span class='user_name'>".$word['user']['user_name']."</span></p>";
	echo "<p><span class='fulltime'>".$word['created']."</span></p>";
	echo "<p class='tag_clound'>".$word["tags"][0]["tag_name"]."</p>";
	echo "<p class='word_desc'>".$word["word_desc"]."<br />回复：".count($word['reply'])."人</p>";
	echo "</div>";
	echo "</div>";
endforeach;
	echo "<p><input type='button' id='act_addproduct' onclick='actaddproduct(".$pcid.");' value='添加没有的产品' /></p>";
?>